//
//  HMTestViewController.swift
//  Weibo24
//
//  Created by Apple on 17/3/26.
//  Copyright © 2017年 KY. All rights reserved.
//

import UIKit

class HMTestViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        view.backgroundColor = UIColor.white
        setupNavPushButton()
    }
    
    //  添加push按钮
    fileprivate func setupNavPushButton() {
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "push", target: self, action: #selector(pushAction))
    }
    
    //  MARK:   --点击push按钮操作
    @objc private func pushAction() {
        
        let testVC = HMTestViewController()
        self.navigationController?.pushViewController(testVC, animated: true)
        
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
